package com.ibeeking.found.cop.b.rest.service;

import com.ibeeking.found.cop.service.common.param.MsgKnowledgeGroupParam;
import com.ibeeking.found.cop.service.common.query.MsgKnowledgeGroupQuery;
import com.ibeeking.found.cop.service.common.vo.MsgKnowledgeGroupVO;

import java.util.List;

public interface IMsgKnowledgeGroupService {

    List<MsgKnowledgeGroupVO> list(MsgKnowledgeGroupQuery query);

    List<MsgKnowledgeGroupVO> listByParentId(Long parentId);

    List<Long> getKnowledgeIdWithSubByParentId(Long parentId);

    /***
     * 新增
     */
    Boolean add(MsgKnowledgeGroupParam param);

    /***
     * 修改
     */
    Boolean modify(MsgKnowledgeGroupParam param);

    /***
     * 通过id查询
     */
    MsgKnowledgeGroupVO view(Long id);

    /***
     * 通过id删除
     */
    Boolean del(Long id);

}
